package com.example.demo.day.config.learn.design.adapter.p3;

//光能适配器
public class OpticalAdapter implements Motor {

    private OpticalMotor motor;

    public OpticalAdapter() {
        this.motor = new OpticalMotor();
    }

    @Override
    public void drive() {
        motor.opticalDrive();
    }
}
